<div class="content comment">
    {{ view.r(data) }}
    {% if commentForm %}
        {{ view.r(commentForm) }}
        {% else %}
        <div class="no-access-comment">
            {% if user.isLogin() is false %}
                请<a class="highlight" href="{{ url(['for':'login']) }}" ajax-model="{{ url(['for':'login']) }}">登录</a>后评论
            {% else %}
                宝宝没有权限评论哦
            {% endif %}
        </div>
    {% endif %}
</div>
{% do assets.addCss('comment','/modules/comment/css/style.css','footer') %}
{% do assets.addJs('jquery.form','http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js','footer') %}
{% do assets.addJs('comment','/modules/comment/js/comment.js','footer') %}